Conversation
…on and commands to switch between using content type machine name or title
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3200 +/- ##
============================================
- Coverage 64.17% 63.09% -1.08%
- Complexity 3345 3376 +31
============================================
Files 391 396 +5
Lines 14581 14320 -261
============================================
- Hits 9357 9035 -322
- Misses 5224 5285 +61
🚀 New features to boost your workflow:
|
Contributor
Author
|
Test failures are most likely caused by not using the updated |
edlib-oddarne
approved these changes
Oct 30, 2025
…:h5p-attach-content-type-title' command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds configuration and commands to switch between displaying H5P Content type machine name or H5P Content type title as Content type in the Hub. Both values are transferred from CA and stored in the Hub as Tags that are connected to the content version.
The Content type is displayed on the content details page and on the
ExploreandMy contentlistings and filter.1. Config setting in Hub
Update Hub environment settings and add
FEATURE_CA_CONTENT_TYPE_DISPLAYwith valueh5p(default) to use Content Type machine name, orh5p_titleto use Content type title. Use the artisan commandedlib:h5p-displaynameto check that the configured value is correct.This will take effect immediately for new content versions.
2. Get title for existing machine names
This is a one time update to get the title for existing content type machines. Run the Artisan command
edlib:h5p-attach-content-type-title. Select the LTI Tool to fetch the titles from. This will only get the titles for content types connected to the selected LTI Tool. The titles are created as Tags and will be connected to the content versions connected to the LTI Tool.There is no visible change.
3. Update existing content
The artisan command
edlib:h5p-displaynamedisplays the current configured, adding option--migratewill update the fieldsdisplayed_content_typeanddisplayed_content_type_normalizedwith the name from the Tag with prefixh5orh5p_titledepending on the configuration. Any content that does not have tags with prefixh5porh5p_titlewill havenullin these fields, thus displaying the LTI Tool name as content type.The change in visible on content version details page.
To update the listings and filter values Meilisearch must re-index the data, use the artisan command
edlib:search-index-rebuild. Listings and filter should now display the updated values.Caution
Listings and search will not display any data during the re-indexing
Switching back (and forth)
FEATURE_CA_CONTENT_TYPE_DISPLAYedlib:h5p-displaynameand verify that it's correctedlib:h5p-displayname --migrateto update all content versions with new valueedlib:search-index-rebuildto rebuild the Meilisearch index